package org.pqw.ossmodel.service;

import org.apache.dubbo.config.annotation.DubboService;
import org.pqw.commonapi.FileIOService;
import org.springframework.stereotype.Service;

import java.io.File;
import java.io.InputStream;
import java.io.OutputStream;

@DubboService
@Service
public class FileIOServiceImpl implements FileIOService {
    @Override
    public String uploadFile(InputStream is, String FileName) {
        return null;
    }

    @Override
    public String uploadFile(File file) {
        return null;
    }

    @Override
    public String uploadFile(String uri) {
        return null;
    }

    @Override
    public int downloadFile(OutputStream os) {
        return 0;
    }

    @Override
    public OutputStream downloadFile(File file) {
        return null;
    }

    @Override
    public OutputStream downloadFile(String uri) {
        System.out.println("下载成功");
        return null;
    }
}
